package com.dc.seckill.vo;

import com.dc.seckill.validator.IsMobile;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @模块 参数模块
 * @作者 djs
 * @时间 2018/3/18 13:07
 * @版本 V1.0
 * @描述 用户参数，进行登录时的参数
 */
public class LoginVo {

    @NotNull
    @IsMobile
    private String mobile;  //手机号

    @NotNull
    @Length(min = 32)
    private String password;    //密码

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "LoginVo{" +
                "mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
